package com.example.waterdispenserm2.dp;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class M2NoodleHelper extends SQLiteOpenHelper {
    public M2NoodleHelper(Context context) {
        super(context,"sq.db",null,1);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        //拓展：主键标识  primary key autoincrement
        String sql="create table "+"tbname"+"(tag text,name text,taste text,durationWater text,heatingDuration text,waterTemperature text,amountWater text )";
        db.execSQL(sql);
    }


    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}

